var e = getApp();

Page({
    data: {
        module1: []
    },
    onLoad: function(e) {
        this.getData();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getData: function() {
        var t = this, n = e.getNetAddresss("plugin.merchant.frontend.supplier-detail");
        n += "&supplier_id=" + this.options.id, e._getNetWork({
            url: n,
            success: function(e) {
                var n = e.data;
                1 === n.result ? (t.setData({
                    module1: n.data
                }), console.log(t.data.module1, "数组")) : wx.showToast({
                    title: n.msg,
                    icon: "none"
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    goToSupplierInfo: function(e) {
        var t = e.currentTarget.dataset.item.id || e.target.dataset.item.id;
        wx.navigateTo({
            url: "/packageB/member/enterprise/enterprise_supplier_info/enterprise_supplier_info?id=" + t
        });
    }
});